<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<jsp:include page="../checksession.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>招商银行供应商门户-采购创造价值_商务协同_商务应答_执行项目_开标登记表</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/style_add.css" rel="stylesheet" type="text/css" />
<link href="css/collcss.css" rel="stylesheet" type="text/css" />

<script language="JavaScript" type="text/javascript" src="../calendar/WdatePicker.js"></script>
<script language="JavaScript" type="text/javascript" src="../javascript/caltimer.js"></script>
<script language="JavaScript" type="text/javascript" src="../javascript/ajaxdeal.js"></script>
</head>

<body>
<div id="main">
<div id="right">
  <table  border="0">
  <tr align="center">
  <table  border="0">
    <tr>
      <td align="center" class="f-12-333333"><div align="left">项目名称：<span class="f-16-b-000000">${projectname}</span></div></td>
    </tr>
    <tr>
      <td align="center" class="f-12-333333"><table border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="13"><img src="images/yingda_zbj_001.jpg" width="13" height="76" border="0" /></td>
          <td width="70" background="images/yingda_zbj_002.jpg"><img src="images/yingda_z_001.jpg" width="64" height="63" border="0" /></td>
          <td width="215" valign="top" background="images/yingda_zbj_002.jpg"><table width="215" border="0" cellpadding="0" cellspacing="0" height="62">
              <tr>
                <td height="36"  colspan="8" valign="middle" class="f-14-e57c00">距离投标截止日期还有</td>
              </tr>
              <tr>
                <td width="26" align="center" bgcolor="#e57c00" class="f-20-b-ffffff" id="day">20</td>
                <td align="center" class="f-14-b-000000">天</td>
                <td width="27" align="center" bgcolor="#e57c00" class="f-20-b-ffffff" id="hour"> 20</td>
                <td align="center" class="f-14-b-000000">时</td>
                <td width="27" align="center" bgcolor="#e57c00" class="f-20-b-ffffff" id="minute">20</td>
                <td align="center" class="f-14-b-000000">分</td>
                <td width="27" align="center" bgcolor="#e57c00" class="f-20-b-ffffff" id="second">20</td>
                <td align="center" class="f-14-b-000000">秒</td>
              </tr>
          </table></td>
          <td width="10" align="left" background="images/yingda_zbj_002.jpg"><img src="images/yingda_zbj_004.jpg" width="1" height="57" border="0" /></td>
          <td background="images/yingda_zbj_002.jpg" class="f-12-F60000 STYLE1">注意：请在应答截止时间前进行应答，超过应答截止时间后进行的应答操作为无效操作！</td>
          <td width="13"><img src="images/yingda_zbj_003.jpg" alt="" width="13" height="76" border="0" /></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td align="center" class="f-12-333333"><table  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="128" height="15" ></td>
          <td width="176" ></td>
          <td width="96" ></td>
          <td width="210" ></td>
        </tr>
        <tr>
        
          <td align="right"> 响应截止日期：&nbsp;</td>
          <td align="left">${steppub.bid_end_ts }</td>
          
          <td height="35" align="right">发布机构：&nbsp;</td>
          <td align="left">${steppub.pk_corp }</td>
          
        </tr>
        <tr>
          <td >&nbsp;</td>
        </tr>
      </table>
  </tr>
    <tr>
      <td align="center" class="f-14-b-221e1f">投标供应商开标报价登记表
        <p>
      项目名称及编号：${projectdetail.proj_name}  ${projectdetail.proj_no }</td>
    </tr>
    
  </table>
  <table  border="0" cellpadding="0" cellspacing="0" style="width:670px">
    <tr class="th_bj">
      <td  style="width:99px" height="28" align="center"  class="f-12-b-ffffff">供应商</td>
      <td  style="width:69px" height="28" align="center"  class="f-12-b-ffffff">投标总价</td>
      <td style="width:109px" height="28" align="center"  class="f-12-b-ffffff">投标是否有效</td>
      <td  style="width:74px" height="28" align="center"  class="f-12-b-ffffff">讲标顺序</td>
      <td  style="width:69px" height="28" align="center"  class="f-12-b-ffffff">讲标时间</td>
      <td  style="width:62px" height="28" align="center" class="f-12-b-ffffff" >备注</td>
      <td  style="width:80px" height="28" class="f-12-b-ffffff" >报价明细</td>
      <td  style="width:109px" height="28" align="center" class="f-12-b-ffffff"  >投标单位签字</td>
    </tr>
    
    <logic:notEmpty name="supquote">
    <tr style="width:35px">
      <td height="35" align="center" >${supquote.pk_xy_proj_item_sup_cfm }</td>
      <td align="center" >${supquote.total_amount }</td>
      <td align="center" >
      <logic:notEmpty name="supquote" property="is_effect">
	      <logic:equal name="supquote" property="is_effect" value="Y" >
	     	 有效
	      </logic:equal>
	       <logic:notEqual name="supquote" property="is_effect" value="Y" >
	      	无效
	      </logic:notEqual>
      </logic:notEmpty>
      </td>
      <td align="center" >${supquote.relate_order }</td>
      <td align="center" > ${supquote.relate_date }</td>
      <td align="center" >${supquote.memo}</td>
      
      <td align="center"><input type='button' value='报价明细' onclick="showPriceDetail('${pk_xy_proj_main}')" style="width:60px;height:20"/></td>
      <td align="center" >
     <logic:notEmpty name="supquote" property="is_effect">
      <logic:equal name="supquote" property="is_effect" value="Y" >
  		<img src="../images/botton_sig.jpg" width="59" height="21" onclick=supquoteSign('${supquote.pk_xy_sup_quote_rec_sup}') style="cursor:hand"/>
       </logic:equal>
       </logic:notEmpty>
    

      </td>
    </tr>
    </logic:notEmpty>
    <tr>
      <td colspan="8" height="1" bgcolor="#7f98ae"></td>
    </tr>


   
    <tr>
      <td colspan="8" height="1" bgcolor="#7f98ae"></td>
    </tr>
    
  </table>
</div>
<script language = "javascript">

//当前执行环节状态
var status = '${status}';

var update_mode = '${update_mode}';
function SignFlag()
{
	this.flag = 1;
}
var sign = new SignFlag();
//使用ajax调用签名方法

//设置时间控制对象
var change  = new timechange();
//设置时间长度
change.setDistance(${dismill});

function supquoteSign(pk)
{

if(update_mode != '1')
{
	showmess("供应商已经被废弃或淘汰不能进行签名!");
	return;
}
//只能在为应答结束时间前才可以签名

	if(change.distance > 0 && status == 3)
	{
		
		var url = "supquote.do?type=1&pk_xy_sup_quote_rec_sup="+pk+"&"+Math.random();
		parent.showHideFun();
		parent.changeShowMessage("开始签名!");
			ajax(url,returnFunction);
		
	}
}

/*
供应商发布登记表签名
*/
function returnFunction(value)
{
	if(value != null)
	{
		if(value == "ok")
		{
			parent.changeShowMessage("签名成功!",'yes','ok');	
		}else
		{
			parent.changeShowMessage("签名失败!",'yes','ok');	
		}
	}else
	{
		parent.changeShowMessage("签名失败!",'yes','ok');	
		
	}
}


/*
	展现供应商报价信息
*/
function showPriceDetail(pk_xy_proj_main)
{
	var url = "supquote.do?type=2&pk_xy_proj_main="+pk_xy_proj_main+"&random="+Math.random();
	window.showModalDialog(url,"报价明细","dialogWidth=660px;dialogHeight=500px");
}

//唤醒计算时间的方法
wakeInterval();
</script>
</body>
</html>
